package com.online.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.online.entity.Teacher;

public interface TeacherService {
    /**
     * 查询所有的教师
     * @param teacherPage
     * @param keyword
     * @return
     */
    IPage <Teacher> findAll(Page<Teacher> teacherPage, String keyword);

    /**
     * 根据id查询教师
     * @param teacherId
     * @return
     */
    public Teacher findById(Integer teacherId);

    /**
     * 根据id删除教师
     * @param teacherId
     * @return
     */
    public int  deleteById(Integer teacherId);

    /**
     * 修改教师的个人信息
     * @param teacher
     * @return
     */
    public int update(Teacher teacher);

    /**
     * 添加教师
     * @param teacher
     * @return
     */
    public int add(Teacher teacher);
}
